<!DOCTYPE html>
<html lang="zh_CN">
<head>
    <meta charset="UTF-8">
    <meta http-equiv="X-UA-Compatible" content="IE=edge">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>Document</title>
    <script src="http://code.jquery.com/jquery-latest.js"></script>
    <!-- 导入jqurery包 -->
    <script type="text/javascript">
        $(function(){
            var $btnobj = $("#btn");
            $btnobj.click(function (){
                alert("jQuery的单击事件！");
            });
        });
    </script>
</head>
<body>
    <button id="btn">确定</button>
</body>
</html>